import request from '@/utils/request'

// 查询学生课堂互动记录列表
export function listInteraction(query) {
  return request({
    url: '/system/ainteraction/list',
    method: 'get',
    params: query
  })
}

// 查询学生课堂互动记录详细
export function getInteraction(id) {
  return request({
    url: '/system/ainteraction/' + id,
    method: 'get'
  })
}

// 新增学生课堂互动记录
export function addInteraction(data) {
  return request({
    url: '/system/ainteraction',
    method: 'post',
    data: data
  })
}

// 修改学生课堂互动记录
export function updateInteraction(data) {
  return request({
    url: '/system/ainteraction',
    method: 'put',
    data: data
  })
}

// 删除学生课堂互动记录
export function delInteraction(id) {
  return request({
    url: '/system/ainteraction/' + id,
    method: 'delete'
  })
}
